<!DOCTYPE html>
<html>
<head>
  <title>新爆蚁ERP小助手-平台自动同意建议价</title>
  <script src="popup.js" type="module"></script>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    body {
      font-family: Arial, sans-serif;
      width: 250px;
      padding: 10px;
      margin: 0;
      overflow: hidden;
    }
    h1 {
      font-size: 16px;
      margin: 0;
    }
    p {
      margin: 10px 0;
    }
    #settingsForm {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    #settingsForm label {
      margin-bottom: 5px;
      color: #333;
    }
    #settingsButton {
      position: absolute;
      top: 8px;
      right: 8px;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 24px;
      color: #333;
      width: auto;
    }

    #settingsButton:hover {
      color: #3498db;
    }
    #credit {
      position: absolute;
      bottom: 10px;
      right: 10px;
      font-size: 12px;
      color: #7f8c8d;
    }
    #foot{
     margin-top: 30px;
    }
    
  </style>
</head>
<body>
  <div id="settingsContent">
    <form id="settingsForm">
      <label for="openKey">爆蚁登录账号:</label>
      <input type="text" id="openKey" name="openKey" placeholder="输入主/子账号">

      <label for="openKey">爆蚁登录密码:</label>
      <input type="text" id="passwd" name="passwd" placeholder="输入登录密码">
      <label for="openKey">选择爆蚁ERP店铺:</label>
      <select id="shopSelect" class="shop-select" style="display: none;"></select>
      <br><br>
      <div
        id="automaticallyAgreeToNegotiate"
        style="
        display: none;
        padding: 5px 10px;
        border-radius: 5px;
        background-color: #1e90ffff;
        color: #fff;
        text-align: center;
        cursor: pointer;
      ">
        根据采集原价自动同意建议价
      </div>
      <div
        id="automaticallyAgreeToNegotiateByCostPrice"
        style="
        display: none;
        padding: 5px 10px;
        border-radius: 5px;
        background-color: #1e90ffff;
        color: #fff;
        text-align: center;
        cursor: pointer;
      ">
        根据报价记录自动同意建议价
      </div>
      <button id="saveSettings" type="submit">登录</button>
   
    </form>
   
  </div>
  <div id="foot"> <span id="credit"><br>仅支持shine和temu平台自动同意建议价</span></div>

</body>
</html>
